package com.boardour.socket.listener;

import java.nio.channels.SocketChannel;

public interface OnReceiveListener {
    /**
     * 数据的回调接口
     *
     * @param trackIndex         0 视频 1 音频
     * @param data               数据
     * @param presentationTimeUs 时间
     */
    void onReceive(int trackIndex, byte[] data, long presentationTimeUs, SocketChannel channel);
}
